<p class="Paragraph"><help:paragraphinfo state="U" number="3"/>In <help:productname>%PRODUCTNAME</help:productname> you can register different data sources. The contents of the data fields are then available to you for use in various fields and controls. Your system address book is such a data source.</p>
<p class="Paragraph"><help:paragraphinfo state="U" number="4"/><help:productname>%PRODUCTNAME</help:productname> templates and AutoPilots use fields for the contents of the address book. When activated, the general fields in the templates are automatically replaced with the fields from the data source of your address book.</p>
<p class="Paragraph"><help:paragraphinfo state="U" number="5" xmlns:help="http://openoffice.org/2000/help"/>In order for the replacement to take place, you must tell <help:productname xmlns:help="http://openoffice.org/2000/help">%PRODUCTNAME</help:productname> which address book you use. The dialog asking for this information appears automatically the first time you activate, for example, a business letter template. You can also call the dialog by following the steps listed below.</p>
<p class="Head2"><help:paragraphinfo state="U" number="35" xmlns:help="http://openoffice.org/2000/help"/>Address Data Source AutoPilot</p>
<p class="Paragraph"><help:paragraphinfo state="U" number="36" xmlns:help="http://openoffice.org/2000/help"/>To call the Address Data Source AutoPilot, choose <span class="T1">File - AutoPilot - Address Data Source</span>. For more information, see section <help:link Id="68434" xmlns:help="http://openoffice.org/2000/help">Address Data Source</help:link> in the <help:productname xmlns:help="http://openoffice.org/2000/help">%PRODUCTNAME</help:productname> Help.</p>
<p class="Head2"><help:paragraphinfo state="U" number="6" xmlns:help="http://openoffice.org/2000/help"/>Manual Registration of Existing Address Book</p>
<p class="Paragraph"><help:paragraphinfo state="U" number="10" xmlns:help="http://openoffice.org/2000/help"/>In the <span class="T1">Data source</span> combo box, select the system address book or the data source you want to use as an address book.</p>
<p class="Paragraph"><help:paragraphinfo state="U" number="11" xmlns:help="http://openoffice.org/2000/help"/>If you have not yet registered the system address book in <help:productname xmlns:help="http://openoffice.org/2000/help">%PRODUCTNAME</help:productname> as the data source, click the <span class="T1">Administrate</span> button. This takes you to the <span class="T1">Data Source Administration</span> dialog, in which you can register your address book as a new data source in <help:productname xmlns:help="http://openoffice.org/2000/help">%PRODUCTNAME</help:productname>. You can find more information in the following section, <span class="T1">System Address Book as Data Source</span>.</p>
<p class="Paragraph"><help:paragraphinfo state="U" number="13" xmlns:help="http://openoffice.org/2000/help"/>In the <span class="T1">Table</span> combo box, select the database table you want to use as the address book.</p>
<p class="Paragraph"><help:paragraphinfo state="U" number="15" xmlns:help="http://openoffice.org/2000/help"/>Under <span class="T1">Field assignment</span>, match the fields for first name, company, department, and so on to the actual field names used in your address book.</p>
<p class="Paragraph"><help:paragraphinfo state="U" number="16" xmlns:help="http://openoffice.org/2000/help"/>For example, in the field "Tel: Home", select from your address book the field that applies best, which may be called "Phone (Home)". When finished, close the dialog with <span class="T1">OK</span>.</p>
<p class="Paragraph"><help:paragraphinfo state="U" number="18" xmlns:help="http://openoffice.org/2000/help"/>Now your data source is registered in <help:productname xmlns:help="http://openoffice.org/2000/help">%PRODUCTNAME</help:productname> as the address book. If you now open a template from the <span class="T1">Business Correspondence</span> category, <help:productname xmlns:help="http://openoffice.org/2000/help">%PRODUCTNAME</help:productname> can automatically insert the correct fields for a form letter.</p>
</span></td></tr></table>
<p class="Head2"><help:paragraphinfo state="U" number="19" xmlns:help="http://openoffice.org/2000/help"/>System Address Book as Data Source</p>
<p class="Paragraph"><help:paragraphinfo state="U" number="21" xmlns:help="http://openoffice.org/2000/help"/>Choose <span class="T1">Tools - Data Sources</span> to call the <help:link Id="66167" xmlns:help="http://openoffice.org/2000/help"><span class="T1">Data Source Administration</span></help:link> dialog, or you can choose <span class="T1">File - Templates - Address Book Source</span> and click the <span class="T1">Administrate</span> button.</p>
<p class="Paragraph"><help:paragraphinfo state="U" number="27" xmlns:help="http://openoffice.org/2000/help"/>Select the data source and click <span class="T1">OK</span>.</p>
<p class="Paragraph"><help:paragraphinfo state="U" number="29" xmlns:help="http://openoffice.org/2000/help"/>If you selected "LDAP address book", the <span class="T1">Data Source Administration</span> dialog will display a <help:link Id="68410" xmlns:help="http://openoffice.org/2000/help"><span class="T1">LDAP</span></help:link> tab page, where you enter the LDAP server and its parameters.</p>
<p class="Paragraph"><help:paragraphinfo state="U" number="31" xmlns:help="http://openoffice.org/2000/help"/>Go to the <help:link Id="66174" xmlns:help="http://openoffice.org/2000/help"><span class="T1">Tables</span></help:link> tab page. Mark the tables that should be visible in <help:productname xmlns:help="http://openoffice.org/2000/help">%PRODUCTNAME</help:productname>.</p>
<p class="Paragraph"><help:paragraphinfo state="U" number="33" xmlns:help="http://openoffice.org/2000/help"/>On the <span class="T1">General</span> tab page, enter a name for this data source in the <span class="T1">Name</span> field. Close the dialog by clicking <span class="T1">OK</span>.</p>